/**
 * Created by jiajie on 26/11/2017.
 */
import {post,postBody} from '../post'
import {get} from '../get'
import shoppingCartAPI from '../../config/api/shoppingCartApi'

// 获取购物车列表
export function findShoppingCart(obj,token) {
  return get(shoppingCartAPI.findShoppingCart, obj, token)
}
export function addToShoppingCart(obj,token) {
  return post(shoppingCartAPI.addToShoppingCart, obj,token)
}
export function updateShoppingCart(obj,token,randomKey) {
  return postBody(shoppingCartAPI.updateShoppingCart,obj, token,randomKey)
}
export function remove(obj,token) {
  return post(shoppingCartAPI.remove,obj,token)
}
export function findShoppingCartCount(obj,token) {
  return post(shoppingCartAPI.findShoppingCartCount,obj, token)
}
